<?php

namespace lc\activity\lottery;

class LotteryService
{
    /**
     * @var 红包活动APPID
     */
    protected $appId;

    /**
     * @var 红包活动 APP_SECRET
     */
    protected $appSecret;

    /**
     * @var 用户信息
     */
    protected $user;

    /**
     * @var 用户额外信息
     */
    protected $userExtra;

    /**
     * @var 抽奖活动配置
     */
    protected $config;

    /**
     * @var int 抽奖日志
     */
    protected $log;

    /**
     * @var string 抽奖IP
     */
    protected $ip;

    /**
     * @var array 抽奖IP记录
     */
    protected $ipRecord;

    /**
     * @var int 当前时间
     */
    protected $time;

    /**
     * @var int 当日时间
     */
    protected $today;

    protected $isNewUser = 0;

    /**
     * @var array 抽奖结果
     */
    protected $response = [
        'msg'   => '未中奖',
        'code'  => 0,
        'data'  => [
            'aId'       => 0,
            'awardId'   => 0,
            'awardName' => '',
            'awardCode' => '',
            'awardPrice'=> 0,
            'wId'       => 0,
            'isReceive' => 0
        ]
    ];
}